사이트 내 전체검색
현재의 날짜와 시간 알려주는 소스
https://cmd.kr/javascript/201 URL이 복사되었습니다.

본문

<span style="font-size:9pt;"><font color="black"> 
<script language="JavaScript"> 
<!-- hiding content from old browsers 
today = new Date() 
  if(today.getMinutes() < 10){ 
  pad = "0" 
  } 
  else 
  pad = ""; 
   
document.write("지금은 ",today.getYear(),"년 ",today.getMonth()+1,"월 ",today.getDate(),"일 "); 
document.write(today.getHours(),"시",pad,today.getMinutes(),"분 입니다. ") 

if((today.getHours() < 12) && (today.getHours() >= 6)){ 
document.write("오늘도 좋은 하루 되시길 바랍니다 !") 

if((today.getHours() >= 12) && (today.getHours() < 19)){ 
document.write("하시는 일 잘 되길 바랍니다 !") 

if((today.getHours() >= 19) && (today.getHours() <= 23)){ 
document.write("좋은 밤 되십시오 !") 

if((today.getHours() >= 0) && (today.getHours() < 4)){ 
document.write("주무실 시간입니다. 건강을 생각해서 이제 주무십시오.") 

if((today.getHours() >= 4) && (today.getHours() <= 6)){ 
document.write("상쾌한 기분으로 출발하세요 !") 

// end hiding content--> 
</script> 
</span> 
</font> 
입니다. 
위의 소스는 <body>와</body>사이에 넣어 주시면 됩니다.

출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=13

댓글목록

등록된 댓글이 없습니다.

831 (11/17P)

Search

Copyright © Cmd 명령어 3.17.173.211